<?php

$context = [];

$profile = GetCurrentProfile();

if (isset($profile)) {
    $context = array_merge($profile);
}

$context['commands'] = [
    Commands::COMMAND_HOME(),
//    Commands::COMMAND_BACK('main/index'),
    Commands::COMMAND_LOGOUT(),
];

$template = $twig->loadTemplate('header.twig');
$template->display($context);
